package com.huang.Body;


import org.springframework.stereotype.Component;

@Component
public class cases {

    public responseBody case01(){
        responseBody body = new responseBody();
        body.setCode(500);
        body.setMessage("方法已经被限流了...");
        return body;
    }

    public responseBody case02(){
        responseBody responseBody = new responseBody();
        responseBody.setCode(502);
        responseBody.setMessage("方法已经被降级了");
        return responseBody;
    }
}
